﻿using WeDonekRpc.Helper.Validate;

namespace Basic.FormRemoteModel.FormView.Model
{
    public class FormViewJoinTable
    {
        [NumValidate("form.id.error", 1)]
        public long FormId
        {
            get;
            set;
        }
        [NullValidate("form.name.null")]
        public string FormName
        {
            set;
            get;
        }
        [NumValidate("form.table.id.error", 1)]
        public long TableId
        {
            get;
            set;
        }
        [EnumValidate("form.view.join.type.error", typeof(ViewJoinType))]
        public ViewJoinType JoinType
        {
            get;
            set;
        }
        [NullValidate("form.view.join.on.null")]
        public Dictionary<long, long> JoinOn
        {
            get;
            set;
        }
        public string JoinShow
        {
            get;
            set;
        }
    }
}
